package com.cyx.gametool;

import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.stage.Stage;

import java.io.IOException;

public class HelloApplication extends Application {
    public static void main(String[] args) {
        launch();
    }

    @Override
    public void start(Stage stage) throws IOException {
        FXMLLoader fxmlLoader = new FXMLLoader(HelloApplication.class.getResource("/fxml/main/game-tool-view.fxml"));
        // 用fxml创建一个场景 场景大小为1024*768
        Scene scene = new Scene(fxmlLoader.load(), 1024, 768);
        // 设置场景标题
        stage.setTitle("游戏工具箱!");
        // 设置场景
        stage.setScene(scene);
        // 禁止调整窗口大小
        stage.setResizable(false);
        // 显示
        stage.show();
    }
}